package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;

public class _jet_initBinder_1 implements JET2Template {

    public _jet_initBinder_1() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("\t@InitBinder");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\tpublic void initBinder(WebDataBinder binder, HttpServletRequest request) { // Register static property editors.");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(java.util.Calendar.class, new org.skyway.spring.util.databinding.CustomCalendarEditor());");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(byte[].class, new org.springframework.web.multipart.support.ByteArrayMultipartFileEditor());");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(boolean.class, new org.skyway.spring.util.databinding.EnhancedBooleanEditor(false));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(Boolean.class, new org.skyway.spring.util.databinding.EnhancedBooleanEditor(true));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(java.math.BigDecimal.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(java.math.BigDecimal.class, true));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(Integer.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Integer.class, true));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(java.util.Date.class, new org.skyway.spring.util.databinding.CustomDateEditor());");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(String.class, new org.skyway.spring.util.databinding.StringEditor());");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(Long.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Long.class, true));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\tbinder.registerCustomEditor(Double.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Double.class, true));");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t}");  //$NON-NLS-1$        
    }
}
